package com.itheima.day06.myLocalDateTime.test8;

import java.time.Duration;
import java.time.LocalDate;
import java.time.LocalTime;

public class Test {
    public static void main(String[] args) {
        LocalTime localTime1 = LocalTime.of(12, 12, 12);
        LocalTime localTime2 = LocalTime.of(21, 21, 21);

        Duration between = Duration.between(localTime1, localTime2);
        System.out.println(between.toSeconds());
        long toMillis = between.toMillis();
        System.out.println(toMillis);
        long toNanos = between.toNanos();
        System.out.println(toNanos);
    }
}
